const infoData={
    list:[]
}

const reducer = (state= infoData,{type,payload}) =>{
    let newState = JSON.parse(JSON.stringify(state))

    switch (type) {
        case "GET_LIST":
            newState.list = payload
            return newState
    
        default:
            return newState
    }
}

export default reducer